from django.urls import path


from user.views import CaptLogin, LoginView, CaptchaAPIView, DingTalkLogin, DingTalkCallback, quitView, \
    RefreshTokenView, BaiDuAPI, QnToken, UserView, AddRedis, EssayfindView, VideofindView, DynamicfindView, \
    UserRecentPublishView, TestWebsocket, FileView, DateManage, DatmManage, VideofindallView, EssayfindOneView, \
    VideoFindByidView

urlpatterns = [
    path("password/", LoginView.as_view()),
    path('loginCapt/', CaptLogin.as_view()),
    path('Captcha/', CaptchaAPIView.as_view()),
    path('getdinglogin/', DingTalkLogin.as_view()),
    path('dingtalkCallback/', DingTalkCallback.as_view()),
    path('quit/', quitView.as_view()),
    path('refreshtoken/', RefreshTokenView.as_view()),
    path('baidu/', BaiDuAPI.as_view()),
    path('qn/', QnToken.as_view()),
    path('userID/', UserView.as_view()),
    path('addRedis/', AddRedis.as_view()),
    path('refreshtoken/', RefreshTokenView.as_view()),
    path('findAllessay/', EssayfindView.as_view()),
    path('findAllvideo/', VideofindView.as_view()),
    path('findAlldynamic/', DynamicfindView.as_view()),
    path('finduserrecent/', UserRecentPublishView.as_view()),
    path('testwebsocket/', TestWebsocket.as_view()),
    path('uploaduserhead/', FileView.as_view()),
    # 创建向量数据库
    path('DatmManage/', DatmManage.as_view()),
    # AI问答
    path('DataManage/', DateManage.as_view()),
    path('videofindall/', VideofindallView.as_view()),
    path('essayfindone/', EssayfindOneView.as_view()),
    path('videofindbyid/', VideoFindByidView.as_view()),
]
